import request from "@/utils/request";

//新增接口
export const addWorkday = (data) => {
  return request({
    url: "plan/planScheduleCalendar",
    method: "post",
    data,
  });
};
//编辑接口
export const updateWorkday = (data) => {
  return request({
    url: "plan/planScheduleCalendar",
    method: "put",
    data,
  });
};
//查询接口
export const listWorkday = (data) => {
  return request({
    url: "plan/produceLineOffInfo/listLineProduceStatus",
    method: "post",
    data,
  });
};
//删除接口
export const delWorkday = (ids) => {
  return request({
    url: `plan/planScheduleCalendar/${ids}`,
    method: "delete",
  });
};
//数据回显接口
export const getWorkday = (id) => {
  return request({
    url: `plan/planScheduleCalendar/${id}`,
    method: "get",
  });
};